New CPDB print backend for GTK Print Dialog
authortinytrebuchet <tinytrebuchet@protonmail.com>
Thu, 9 Feb 2023 18:17:02 +0000 (23:47 +0530)
committertinytrebuchet <tinytrebuchet@protonmail.com>
Fri, 10 Feb 2023 19:43:48 +0000 (01:13 +0530)
commit41b60bbd6ceb36dfc22e625d2b3c65bd45f15c76
tree0bcc5990bf31e6caaaf0e7113c434cfc70511312
parent45e6e9a7d15abae06b1f4c8f21749f06712f09d0
New CPDB print backend for GTK Print Dialog

The Common Print Dialog Backends (CPDB) concept has GUI-toolkit-independent
backends for each print technology (CUPS, Print to File, cloud printing
services, ...) and each print dialog (GTK, Qt, Chromium, ...) is supposed
to use this backend, so that changes in print technologies can be centrally
and quickly covered by changing the backends and everything new gets available
in all print dialogs.

This commit provides a GTK print dialog backend to add support for the CPDB
concept. It communicates with all installed CPDB backends and so gives support
for all these print technologies to the GTK print dialog.

To make use of CPDB the GTK print dialog is supposed to be installed with this
backend and the 'Print To File' backend, and not any others to prevent printer
duplication.
meson_options.txt
modules/printbackends/gtkprintbackendcpdb.c [new file with mode: 0644]
modules/printbackends/gtkprintbackendcpdb.h [new file with mode: 0644]
modules/printbackends/gtkprintbackendcups.c
modules/printbackends/gtkprintbackendutils.c [new file with mode: 0644]
modules/printbackends/gtkprintbackendutils.h [new file with mode: 0644]
modules/printbackends/gtkprintercpdb.c [new file with mode: 0644]
modules/printbackends/gtkprintercpdb.h [new file with mode: 0644]
modules/printbackends/meson.build